<template>
<div>
  <h1>我是大娃</h1>
  <erwa/>
  <sanwa/>
</div>
</template>
<script>
import erwa from '@/components/zujian/ErWa'
let html = '<div></button><button v-on:click="count++">You clicked me {{ count }} times.</button><button @click="feiji">飞机</button></div>'


let feiji = function(){
        console.log("我要打飞机")
}
let sanwa ={
  data: function () {
    return {
      count: 0
    }
  },
  template: html,
  methods:{
     feiji(){
         feiji();
     }
  }
}
export default {
    
    components:{
        erwa,
        sanwa:sanwa
    }
}
</script>